package org.example.task.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum TaskPriority {
    LOW("低", 0),
    MEDIUM("中", 1),
    HIGH("高", 2);
    @JsonValue
    private final String key;
    @EnumValue
    private final int value;

    TaskPriority(String key, int value) {
        this.key = key;
        this.value = value;
    }
}
